package com.glc.hms.system.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 菜单信息表
 * </p>
 *
 * @author Santa
 * @since 2019-11-26
 */
public class SysMenu extends Model<SysMenu> {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单ID
     */
	private Long id;
    /**
     * 菜单名称
     */
	private String menuTitle;
    /**
     * 父级菜单ID
     */
	private Long pMenuId;
    /**
     * 菜单图标
     */
	private String menuIcon;
    /**
     * 菜单URL
     */
	private String menuUrl;
    /**
     * 是否末级（0-否，1-是）
     */
	private Integer isLast;
    /**
     * 展示顺序
     */
	private Integer sortNo;
    /**
     * 是否有效（0-无效，1-有效）
     */
	private Integer isEnabled;
    /**
     * 层级结构
     */
	private String levelCode;
    /**
     * 创建时间
     */
	private LocalDateTime createTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getMenuTitle() {
		return menuTitle;
	}

	public void setMenuTitle(String menuTitle) {
		this.menuTitle = menuTitle;
	}

	public Long getpMenuId() {
		return pMenuId;
	}

	public void setpMenuId(Long pMenuId) {
		this.pMenuId = pMenuId;
	}

	public String getMenuIcon() {
		return menuIcon;
	}

	public void setMenuIcon(String menuIcon) {
		this.menuIcon = menuIcon;
	}

	public String getMenuUrl() {
		return menuUrl;
	}

	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}

	public Integer getIsLast() {
		return isLast;
	}

	public void setIsLast(Integer isLast) {
		this.isLast = isLast;
	}

	public Integer getSortNo() {
		return sortNo;
	}

	public void setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
	}

	public Integer getIsEnabled() {
		return isEnabled;
	}

	public void setIsEnabled(Integer isEnabled) {
		this.isEnabled = isEnabled;
	}

	public String getLevelCode() {
		return levelCode;
	}

	public void setLevelCode(String levelCode) {
		this.levelCode = levelCode;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SysMenu{" +
			", id=" + id +
			", menuTitle=" + menuTitle +
			", pMenuId=" + pMenuId +
			", menuIcon=" + menuIcon +
			", menuUrl=" + menuUrl +
			", isLast=" + isLast +
			", sortNo=" + sortNo +
			", isEnabled=" + isEnabled +
			", levelCode=" + levelCode +
			", createTime=" + createTime +
			"}";
	}
}
